package org.jeecg.common.constant.enums;

/**
 * 爬虫任务状态枚举
 *
 * @author Yafei Song
 * @author: jeecg-boot
 * @date 2022/09/28
 */
public enum ReptileStateEnum {

    /**
     * 1=待执行 2=执行成功 3=执行失败
     */
    STATE_1(1, "待执行"),

    /**
     * 2=执行成功
     */
    STATE_OK_2(2, "执行成功"),


    /**
     * 3=执行失败
     */
    STATE_FAIL_3(3, "执行失败"),

    ;


    private Integer code;

    private String desc;

    ReptileStateEnum(Integer code, String des) {
        this.code = code;
        this.desc = des;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
